﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MMK.PaketTracker.Server.Application;

namespace MMK.PaketTracker.Server.Web.Application
{
    public partial class ResetDatabase1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void reset_Click(object sender, EventArgs e)
        {
            ExecuteSqlManager.ExecuteSql("DELETE FROM Adressen");
            ExecuteSqlManager.ExecuteSql("DELETE FROM FahrzeugGPSData");
            ExecuteSqlManager.ExecuteSql("DELETE FROM FahrzeugPaket");
            ExecuteSqlManager.ExecuteSql("DELETE FROM Pakete");
            ExecuteSqlManager.ExecuteSql("DELETE FROM PaketStatus");

            lbl.Text = "success";
        }
    }
}